package itheima.zuoye.test3;

public class Test {
    public static void main(String[] args) {
        Car c1 = new BMWCar("BMW",5000);
        Car c2 = new Benz("Benz",6000);
        Motorcycle M1 = new BMWMotorcycle("BMWMO",5000);
        Motorcycle M2 = new YamahaMotorcycle("BenzMO",6000);
        c1.run();
        c2.run();
        M1.run();
        M2.run();
        ((GPSFunction)c1).navigate();
        ((GPSFunction)M1).navigate();



    }
}
